with open('learning_python.txt') as file_object:
    for line in file_object:
        new_line = line.replace('Python', 'C')
        print(new_line.rstrip())